package com.ruoyi.develop.payApplyBuyDetail.domain;

import java.math.BigDecimal;

import com.ruoyi.develop.goodsSalebuyall.domain.GoodsSalebuyall;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购单付款申请明细对象 pay_apply_buy_detail
 *
 * @author qh
 * @date 2025-03-22
 */
public class PayApplyBuyDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 采购单id
     */
    @Excel(name = "采购单id")
    private String buyId;

    /**
     * 付款申请单id
     */
    private String payApplyId;

    /**
     * 采购明细id
     */
    @Excel(name = "采购明细id")
    private String buyDetailId;

    /**
     * 产品id
     */
    @Excel(name = "产品id")
    private String goodsId;

    /**
     * 产品编码
     */
    @Excel(name = "产品编码")
    private String goodsCode;

    /**
     * 产品名称
     */
    @Excel(name = "产品名称")
    private String goodsName;

    /**
     * 产品型号
     */
    @Excel(name = "产品型号")
    private String goodsModel;

    /**
     * 数量
     */
    @Excel(name = "数量")
    private BigDecimal amount;


    /** * 重量 */
    @Excel(name = "重量")
    private BigDecimal dun;

    /**
     * 金额
     */
    @Excel(name = "金额")
    private BigDecimal money;

    /**
     * 付款状态
     */
    @Excel(name = "付款状态")
    private String payStatus;

    /**
     * 删除标志
     */
    private String delFlag;

    /** * 支付金额 */
    private BigDecimal payMoney;

    /** * 支付剩余 */
    private BigDecimal payRemain;

    /** * 本次支付金额 */
    private BigDecimal thisPayMoney;

    private GoodsSalebuyall buyDetail;

    public BigDecimal getPayMoney() {
        return payMoney;
    }

    public void setPayMoney(BigDecimal payMoney) {
        this.payMoney = payMoney;
    }

    public BigDecimal getPayRemain() {
        return payRemain;
    }

    public void setPayRemain(BigDecimal payRemain) {
        this.payRemain = payRemain;
    }

    public BigDecimal getThisPayMoney() {
        return thisPayMoney;
    }

    public void setThisPayMoney(BigDecimal thisPayMoney) {
        this.thisPayMoney = thisPayMoney;
    }

    public GoodsSalebuyall getBuyDetail() {
        return buyDetail;
    }

    public void setBuyDetail(GoodsSalebuyall buyDetail) {
        this.buyDetail = buyDetail;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setBuyId(String buyId) {
        this.buyId = buyId;
    }

    public String getBuyId() {
        return buyId;
    }

    public void setBuyDetailId(String buyDetailId) {
        this.buyDetailId = buyDetailId;
    }

    public String getBuyDetailId() {
        return buyDetailId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsModel(String goodsModel) {
        this.goodsModel = goodsModel;
    }

    public String getGoodsModel() {
        return goodsModel;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public String getPayApplyId() {
        return payApplyId;
    }

    public void setPayApplyId(String payApplyId) {
        this.payApplyId = payApplyId;
    }

    public String getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(String payStatus) {
        this.payStatus = payStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("buyId", getBuyId())
                .append("buyDetailId", getBuyDetailId())
                .append("goodsId", getGoodsId())
                .append("goodsCode", getGoodsCode())
                .append("goodsName", getGoodsName())
                .append("goodsModel", getGoodsModel())
                .append("amount", getAmount())
                .append("money", getMoney())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
